package com.bbs;

import com.basestone.util.base.GeneratorUtil;

import java.io.IOException;

/**
 * Created by chaibin on 2017-12-9.
 * ProjectName:webTest
 * PackageName:com.bbs
 * ClassName:Gen
 * Version:1.0
 * Desc:代码生成器
 */
public class Gen {
    public static void main(String[] args) {
        String generatorPath = "D:/backApp/webTest/src/main/java";
        String modelPath = "D:\\backApp\\webTest\\src\\main\\java\\com\\bbs\\model";
        String daoPackageName = "com.bbs.dao";
        String servicePackageName = "com.bbs.service";
        String controllerPackageName = "com.bbs.controller";
        try {
            new GeneratorUtil(generatorPath, modelPath, daoPackageName, servicePackageName, controllerPackageName).generator();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
